package com.heima.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.article.dtos.ArticleHomeDto;
import com.heima.model.article.pojos.ApArticle;
import com.heima.model.common.dtos.ResponseResult;

public interface ApArticleService extends IService<ApArticle> {

    //查询
    ResponseResult load(ArticleHomeDto dto);
    //首页推荐cache查询
    ResponseResult loadFromCache(ArticleHomeDto dto);

    ResponseResult loadmore(ArticleHomeDto dto);

    ResponseResult loadnew(ArticleHomeDto dto);

    //生成文章url
    void generate(Long articleId);
    //app端文章保存
    ResponseResult saveArticle(ArticleDto dto);
    //构建索引
    void sendIndexUpdate(ApArticle article,String content);
}